package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the PAGO_EN_LINEA_COMP database table.
 * 
 */
@Entity
@Table(name="PAGO_EN_LINEA_COMP")
public class PagoEnLineaComp implements Serializable {
	private static final long serialVersionUID = 1L;
	private PagoEnLineaCompPK id;
	private String comentario;
	private String usrModi;
	private PagoEnLinea pagoEnLinea;

    public PagoEnLineaComp() {
    }


	@EmbeddedId
	public PagoEnLineaCompPK getId() {
		return this.id;
	}

	public void setId(PagoEnLineaCompPK id) {
		this.id = id;
	}
	

	@Column(nullable=false, length=255)
	public String getComentario() {
		return this.comentario;
	}

	public void setComentario(String comentario) {
		this.comentario = comentario;
	}


	@Column(name="USR_MODI", nullable=false, length=15)
	public String getUsrModi() {
		return this.usrModi;
	}

	public void setUsrModi(String usrModi) {
		this.usrModi = usrModi;
	}


	//bi-directional many-to-one association to PagoEnLinea
    @ManyToOne
	@JoinColumn(name="PAGO_EN_LINEA_ID", nullable=false, insertable=false, updatable=false)
	public PagoEnLinea getPagoEnLinea() {
		return this.pagoEnLinea;
	}

	public void setPagoEnLinea(PagoEnLinea pagoEnLinea) {
		this.pagoEnLinea = pagoEnLinea;
	}
	
}